var runtime.work

232 uses

	runtime (current package)
		metrics.go#L666: 	a.cpuStats = work.cpuStats
		mgc.go#L186: 	work.startSema = 1
		mgc.go#L187: 	work.markDoneSema = 1
		mgc.go#L188: 	lockInit(&work.sweepWaiters.lock, lockRankSweepWaiters)
		mgc.go#L189: 	lockInit(&work.assistQueue.lock, lockRankAssistQueue)
		mgc.go#L190: 	lockInit(&work.wbufSpans.lock, lockRankWbufSpans)
		mgc.go#L303: var work workType
		mgc.go#L460: 	n := work.cycles.Load()
		mgc.go#L475: 	for work.cycles.Load() == n+1 && sweepone() != ^uintptr(0) {
		mgc.go#L491: 	for work.cycles.Load() == n+1 && !isSweepDone() {
		mgc.go#L499: 	cycle := work.cycles.Load()
		mgc.go#L511: 		lock(&work.sweepWaiters.lock)
		mgc.go#L512: 		nMarks := work.cycles.Load()
		mgc.go#L519: 			unlock(&work.sweepWaiters.lock)
		mgc.go#L525: 		work.sweepWaiters.list.push(getg())
		mgc.go#L526: 		goparkunlock(&work.sweepWaiters.lock, waitReasonWaitForGCCycle, traceBlockUntilGCEnds, 1)
		mgc.go#L589: 		return int32(t.n-work.cycles.Load()) > 0
		mgc.go#L629: 	semacquire(&work.startSema)
		mgc.go#L632: 		semrelease(&work.startSema)
		mgc.go#L653: 	work.userForced = trigger.kind == gcTriggerCycle
		mgc.go#L671: 	work.stwprocs, work.maxprocs = gomaxprocs, gomaxprocs
		mgc.go#L672: 	if work.stwprocs > ncpu {
		mgc.go#L675: 		work.stwprocs = ncpu
		mgc.go#L677: 	work.heap0 = gcController.heapLive.Load()
		mgc.go#L678: 	work.pauseNS = 0
		mgc.go#L679: 	work.mode = mode
		mgc.go#L682: 	work.tSweepTerm = now
		mgc.go#L683: 	work.pauseStart = now
		mgc.go#L694: 	work.cycles.Add(1)
		mgc.go#L750: 		work.pauseNS += now - work.pauseStart
		mgc.go#L751: 		work.tMark = now
		mgc.go#L752: 		memstats.gcPauseDist.record(now - work.pauseStart)
		mgc.go#L754: 		sweepTermCpu := int64(work.stwprocs) * (work.tMark - work.tSweepTerm)
		mgc.go#L755: 		work.cpuStats.gcPauseTime += sweepTermCpu
		mgc.go#L756: 		work.cpuStats.gcTotalTime += sweepTermCpu
		mgc.go#L775: 	semrelease(&work.startSema)
		mgc.go#L810: 	semacquire(&work.markDoneSema)
		mgc.go#L819: 	if !(gcphase == _GCmark && work.nwait == work.nproc && !gcMarkWorkAvailable(nil)) {
		mgc.go#L820: 		semrelease(&work.markDoneSema)
		mgc.go#L872: 	work.tMarkTerm = now
		mgc.go#L873: 	work.pauseStart = now
		mgc.go#L903: 			work.pauseNS += now - work.pauseStart
		mgc.go#L904: 			memstats.gcPauseDist.record(now - work.pauseStart)
		mgc.go#L926: 	semrelease(&work.markDoneSema)
		mgc.go#L935: 	gcController.endCycle(now, int(gomaxprocs), work.userForced)
		mgc.go#L947: 	work.heap1 = gcController.heapLive.Load()
		mgc.go#L973: 		work.heap2 = work.bytesMarked
		mgc.go#L990: 		gcSweep(work.mode)
		mgc.go#L1018: 	work.pauseNS += now - work.pauseStart
		mgc.go#L1019: 	work.tEnd = now
		mgc.go#L1020: 	memstats.gcPauseDist.record(now - work.pauseStart)
		mgc.go#L1023: 	memstats.pause_ns[memstats.numgc%uint32(len(memstats.pause_ns))] = uint64(work.pauseNS)
		mgc.go#L1025: 	memstats.pause_total_ns += uint64(work.pauseNS)
		mgc.go#L1027: 	markTermCpu := int64(work.stwprocs) * (work.tEnd - work.tMarkTerm)
		mgc.go#L1028: 	work.cpuStats.gcPauseTime += markTermCpu
		mgc.go#L1029: 	work.cpuStats.gcTotalTime += markTermCpu
		mgc.go#L1034: 	work.cpuStats.accumulate(now, true)
		mgc.go#L1038: 	memstats.gc_cpu_fraction = float64(work.cpuStats.gcTotalTime-work.cpuStats.gcIdleTime) / float64(work.cpuStats.totalTime)
		mgc.go#L1054: 	if work.userForced {
		mgc.go#L1059: 	lock(&work.sweepWaiters.lock)
		mgc.go#L1061: 	injectglist(&work.sweepWaiters.list)
		mgc.go#L1062: 	unlock(&work.sweepWaiters.lock)
		mgc.go#L1139: 			" @", string(itoaDiv(sbuf[:], uint64(work.tSweepTerm-runtimeInitTime)/1e6, 3)), "s ",
		mgc.go#L1141: 		prev := work.tSweepTerm
		mgc.go#L1142: 		for i, ns := range []int64{work.tMark, work.tMarkTerm, work.tEnd} {
		mgc.go#L1151: 			int64(work.stwprocs) * (work.tMark - work.tSweepTerm),
		mgc.go#L1166: 			work.heap0>>20, "->", work.heap1>>20, "->", work.heap2>>20, " MB, ",
		mgc.go#L1170: 			work.maxprocs, " P")
		mgc.go#L1171: 		if work.userForced {
		mgc.go#L1221: 		notetsleepg(&work.bgMarkReady, -1)
		mgc.go#L1222: 		noteclear(&work.bgMarkReady)
		mgc.go#L1242: 	work.nproc = ^uint32(0)
		mgc.go#L1243: 	work.nwait = ^uint32(0)
		mgc.go#L1274: 	notewakeup(&work.bgMarkReady)
		mgc.go#L1349: 		decnwait := atomic.Xadd(&work.nwait, -1)
		mgc.go#L1350: 		if decnwait == work.nproc {
		mgc.go#L1351: 			println("runtime: work.nwait=", decnwait, "work.nproc=", work.nproc)
		mgc.go#L1405: 		incnwait := atomic.Xadd(&work.nwait, +1)
		mgc.go#L1406: 		if incnwait > work.nproc {
		mgc.go#L1408: 				"work.nwait=", incnwait, "work.nproc=", work.nproc)
		mgc.go#L1420: 		if incnwait == work.nproc && !gcMarkWorkAvailable(nil) {
		mgc.go#L1439: 	if !work.full.empty() {
		mgc.go#L1442: 	if work.markrootNext < work.markrootJobs {
		mgc.go#L1459: 	work.tstart = startTime
		mgc.go#L1462: 	if work.full != 0 || work.markrootNext < work.markrootJobs {
		mgc.go#L1463: 		print("runtime: full=", hex(work.full), " next=", work.markrootNext, " jobs=", work.markrootJobs, " nDataRoots=", work.nDataRoots, " nBSSRoots=", work.nBSSRoots, " nSpanRoots=", work.nSpanRoots, " nStackRoots=", work.nStackRoots, "\n")
		mgc.go#L1476: 	work.stackRoots = nil
		mgc.go#L1537: 	gcController.resetLive(work.bytesMarked)
		mgc.go#L1625: 	work.bytesMarked = 0
		mgc.go#L1626: 	work.initialHeapLive = gcController.heapLive.Load()
		mgcmark.go#L66: 	work.nDataRoots = 0
		mgcmark.go#L67: 	work.nBSSRoots = 0
		mgcmark.go#L72: 		if nDataRoots > work.nDataRoots {
		mgcmark.go#L73: 			work.nDataRoots = nDataRoots
		mgcmark.go#L79: 		if nBSSRoots > work.nBSSRoots {
		mgcmark.go#L80: 			work.nBSSRoots = nBSSRoots
		mgcmark.go#L97: 	work.nSpanRoots = len(mheap_.markArenas) * (pagesPerArena / pagesPerSpanRoot)
		mgcmark.go#L105: 	work.stackRoots = allGsSnapshot()
		mgcmark.go#L106: 	work.nStackRoots = len(work.stackRoots)
		mgcmark.go#L108: 	work.markrootNext = 0
		mgcmark.go#L109: 	work.markrootJobs = uint32(fixedRootCount + work.nDataRoots + work.nBSSRoots + work.nSpanRoots + work.nStackRoots)
		mgcmark.go#L112: 	work.baseData = uint32(fixedRootCount)
		mgcmark.go#L113: 	work.baseBSS = work.baseData + uint32(work.nDataRoots)
		mgcmark.go#L114: 	work.baseSpans = work.baseBSS + uint32(work.nBSSRoots)
		mgcmark.go#L115: 	work.baseStacks = work.baseSpans + uint32(work.nSpanRoots)
		mgcmark.go#L116: 	work.baseEnd = work.baseStacks + uint32(work.nStackRoots)
		mgcmark.go#L122: 	if work.markrootNext < work.markrootJobs {
		mgcmark.go#L123: 		print(work.markrootNext, " of ", work.markrootJobs, " markroot jobs done\n")
		mgcmark.go#L134: 		if i >= work.nStackRoots {
		mgcmark.go#L168: 	case work.baseData <= i && i < work.baseBSS:
		mgcmark.go#L171: 			workDone += markrootBlock(datap.data, datap.edata-datap.data, datap.gcdatamask.bytedata, gcw, int(i-work.baseData))
		mgcmark.go#L174: 	case work.baseBSS <= i && i < work.baseSpans:
		mgcmark.go#L177: 			workDone += markrootBlock(datap.bss, datap.ebss-datap.bss, datap.gcbssmask.bytedata, gcw, int(i-work.baseBSS))
		mgcmark.go#L191: 	case work.baseSpans <= i && i < work.baseStacks:
		mgcmark.go#L193: 		markrootSpans(gcw, int(i-work.baseSpans))
		mgcmark.go#L198: 		if i < work.baseStacks || work.baseEnd <= i {
		mgcmark.go#L200: 			print("runtime: markroot index ", i, " not in stack roots range [", work.baseStacks, ", ", work.baseEnd, ")\n")
		mgcmark.go#L203: 		gp := work.stackRoots[i-work.baseStacks]
		mgcmark.go#L209: 			gp.waitsince = work.tstart
		mgcmark.go#L556: 	decnwait := atomic.Xadd(&work.nwait, -1)
		mgcmark.go#L557: 	if decnwait == work.nproc {
		mgcmark.go#L558: 		println("runtime: work.nwait =", decnwait, "work.nproc=", work.nproc)
		mgcmark.go#L583: 	incnwait := atomic.Xadd(&work.nwait, +1)
		mgcmark.go#L584: 	if incnwait > work.nproc {
		mgcmark.go#L586: 			"work.nproc=", work.nproc)
		mgcmark.go#L590: 	if incnwait == work.nproc && !gcMarkWorkAvailable(nil) {
		mgcmark.go#L615: 	lock(&work.assistQueue.lock)
		mgcmark.go#L616: 	list := work.assistQueue.q.popList()
		mgcmark.go#L618: 	unlock(&work.assistQueue.lock)
		mgcmark.go#L626: 	lock(&work.assistQueue.lock)
		mgcmark.go#L631: 		unlock(&work.assistQueue.lock)
		mgcmark.go#L636: 	oldList := work.assistQueue.q
		mgcmark.go#L637: 	work.assistQueue.q.pushBack(gp)
		mgcmark.go#L644: 		work.assistQueue.q = oldList
		mgcmark.go#L648: 		unlock(&work.assistQueue.lock)
		mgcmark.go#L652: 	goparkunlock(&work.assistQueue.lock, waitReasonGCAssistWait, traceBlockGCMarkAssist, 2)
		mgcmark.go#L667: 	if work.assistQueue.q.empty() {
		mgcmark.go#L679: 	lock(&work.assistQueue.lock)
		mgcmark.go#L680: 	for !work.assistQueue.q.empty() && scanBytes > 0 {
		mgcmark.go#L681: 		gp := work.assistQueue.q.pop()
		mgcmark.go#L703: 			work.assistQueue.q.pushBack(gp)
		mgcmark.go#L714: 	unlock(&work.assistQueue.lock)
		mgcmark.go#L1062: 	if work.markrootNext < work.markrootJobs {
		mgcmark.go#L1065: 			job := atomic.Xadd(&work.markrootNext, +1) - 1
		mgcmark.go#L1066: 			if job >= work.markrootJobs {
		mgcmark.go#L1084: 		if work.full == 0 {
		mgcmark.go#L1164: 		if work.full == 0 {
		mgcmark.go#L1181: 			if work.markrootNext < work.markrootJobs {
		mgcmark.go#L1182: 				job := atomic.Xadd(&work.markrootNext, +1) - 1
		mgcmark.go#L1183: 				if job < work.markrootJobs {
		mgcpacer.go#L461: 			work.initialHeapLive>>20, "->",
		mgcpacer.go#L1271: 		gcWaitOnMark(work.cycles.Load())
		mgcwork.go#L118: 	lockWithRankMayAcquire(&work.wbufSpans.lock, lockRankWbufSpans)
		mgcwork.go#L275: 		atomic.Xadd64(&work.bytesMarked, int64(w.bytesMarked))
		mgcwork.go#L354: 	if work.empty != 0 {
		mgcwork.go#L355: 		b = (*workbuf)(work.empty.pop())
		mgcwork.go#L362: 	lockWithRankMayAcquire(&work.wbufSpans.lock, lockRankWbufSpans)
		mgcwork.go#L367: 		if work.wbufSpans.free.first != nil {
		mgcwork.go#L368: 			lock(&work.wbufSpans.lock)
		mgcwork.go#L369: 			s = work.wbufSpans.free.first
		mgcwork.go#L371: 				work.wbufSpans.free.remove(s)
		mgcwork.go#L372: 				work.wbufSpans.busy.insert(s)
		mgcwork.go#L374: 			unlock(&work.wbufSpans.lock)
		mgcwork.go#L384: 			lock(&work.wbufSpans.lock)
		mgcwork.go#L385: 			work.wbufSpans.busy.insert(s)
		mgcwork.go#L386: 			unlock(&work.wbufSpans.lock)
		mgcwork.go#L410: 	work.empty.push(&b.node)
		mgcwork.go#L420: 	work.full.push(&b.node)
		mgcwork.go#L428: 	b := (*workbuf)(work.full.pop())
		mgcwork.go#L454: 	lock(&work.wbufSpans.lock)
		mgcwork.go#L455: 	if work.full != 0 {
		mgcwork.go#L461: 	work.empty = 0
		mgcwork.go#L462: 	work.wbufSpans.free.takeAll(&work.wbufSpans.busy)
		mgcwork.go#L463: 	unlock(&work.wbufSpans.lock)
		mgcwork.go#L470: 	lock(&work.wbufSpans.lock)
		mgcwork.go#L471: 	if gcphase != _GCoff || work.wbufSpans.free.isEmpty() {
		mgcwork.go#L472: 		unlock(&work.wbufSpans.lock)
		mgcwork.go#L478: 			span := work.wbufSpans.free.first
		mgcwork.go#L482: 			work.wbufSpans.free.remove(span)
		mgcwork.go#L486: 	more := !work.wbufSpans.free.isEmpty()
		mgcwork.go#L487: 	unlock(&work.wbufSpans.lock)